package com.swf.common.fmt;

import java.io.*;

import org.dom4j.*;

import com.swf.common.utils.*;
import com.swf.common.xml.*;

public class XmlFullTag{
	private String dataName;
	private String tagName;
	public String getDataName() {
		return dataName;
	}
	public void setDataName(String dataName) {
		this.dataName = dataName;
	}
	public String getTagName() {
		return tagName;
	}
	public void setTagName(String tagName) {
		this.tagName = tagName;
	}
	
	
	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append("<xmlFullTag dataName=\""+this.dataName+"\" tagName=\""+this.tagName+"\"/>");
		return sb.toString();
	}
	
	public String toFormatString() {
		try {
			return FwsXmlUtils.formatPrettyXmlWithOutEncoding(toString());
		} catch (DocumentException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		return null;
	}
}